from django.urls import path
from apps.organization.views import OrgListView, AddAskView, OrgHomeView, OrgTeacherView, OrgCourseView, OrgDescView, \
    TeachersList, TeachersDetail

app_name = 'organization'

urlpatterns = [
    path('org_list/', OrgListView.as_view(), name='list'),
    path('add_ask/', AddAskView.as_view(), name='add_ask'),
    path('<int:org_id>/', OrgHomeView.as_view(), name="home"),
    path('<int:org_id>/teacher/', OrgTeacherView.as_view(), name="teacher"),
    path('<int:org_id>/course/', OrgCourseView.as_view(), name="course"),
    path('<int:org_id>/desc/', OrgDescView.as_view(), name="desc"),

    path('teachers/', TeachersList.as_view(), name='teacher_list'),
    path('teachers/<int:teacher_id>/', TeachersDetail.as_view(), name='teacher_detail'),
]
